using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;

namespace Spike.TestHarness
{
    public partial class FaultExceptionDialog : Form
    {
        public FaultExceptionDialog()
        {
            InitializeComponent();
        }

        public void SetException(Exception ex)
        {
            this.Text = ex.GetType().Name;

            txtMessage.Text = ex.Message;
            if (ex.InnerException != null)
                txtInnerMessage.Text = ex.InnerException.Message;

        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        
    }
}